package hxg.cxl;

/**
 * @author HeXiangGuang
 * @create 2021-06-25 18:15
 */
public class AbstractDemo {
    public static void main(String [] args)
    {
        /* 以下是不允许的，会引发错误 */
  /*      Employee e = new Employee("George W.", "Houston, TX", 43);

        System.out.println("\n Call mailCheck using Employee reference--");
        e.mailCheck();*/
        Salary salary = new Salary("xiaohe","zhaxuejava",1);
        System.out.println(salary.toString());
    }
}
